package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.springframework.stereotype.Service;

import java.util.List;


public interface DishService {
    /**
     * 新增菜品
     * @param dishDTO
     * @return
     */
     void insert(DishDTO dishDTO);

    PageResult selectByPage(DishPageQueryDTO dto);

    void deleteByIds(List<Long> ids);

    DishVO selectById(Long id);

    void updateDish(DishDTO dishDTO);

    List<DishVO> selectByCategoryId(Long id,String name);

    void updateWithStutus(Integer status, Long id);
    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);
}
